//package com.atguigu.bean;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.stereotype.Component;
//import org.springframework.validation.annotation.Validated;
//
//import javax.validation.constraints.Size;
//
//@Validated
//@Component
//public class ValidTester {
//    public void method1(@Size(min = 2) String val1) {
//        System.out.println("method1 val1");
//    }
//}
